# coding=utf-8
# @Time: 2023/2/11 0:31
# @Author: zyg
# email: zhaoyiguang@lecent.cn

from base.ObjectMap import ObjectMap
from logs.log import log


class ExternallinkPage(ObjectMap):
    def goto_imooc(self, driver):
        """
        切换窗口为慕课网
        :param driver:
        :return:
        """
        log.info("切换窗口为慕课网:" + driver.title)
        self.switch_window_2_latest_handle(driver)
        return driver.title
